home *** CD-ROM | disk | FTP | other *** search
- on foes4 myfoe, mycnl
- global ppl, foes, mnv, pwr, psyprop, fxpath
- if (getAt(foes, 1) = myfoe) and (myfoe <> 137) then
- if the locH of sprite getAt(ppl, 1) < (the locH of sprite getAt(ppl, 2) - 120) then
- set the member of sprite mycnl to member(myfoe + 1)
- setAt(foes, 1, 77)
- setAt(mnv, 2, 9)
- sprite(getAt(ppl, 2)).flipH = 0
- else
- if the locH of sprite getAt(ppl, 1) > (the locH of sprite getAt(ppl, 2) + 120) then
- set the member of sprite mycnl to member(myfoe + 1)
- setAt(foes, 1, 77)
- setAt(mnv, 2, 9)
- sprite(getAt(ppl, 2)).flipH = 1
- else
- if abs(the locV of sprite getAt(ppl, 1) - the locV of sprite getAt(ppl, 2)) < 90 then
- set the member of sprite mycnl to member(87)
- setAt(foes, 1, 87)
- setAt(mnv, 2, 6)
- if the locH of sprite getAt(ppl, 1) > the locH of sprite getAt(ppl, 2) then
- sprite(getAt(ppl, 2)).flipH = 1
- else
- sprite(getAt(ppl, 2)).flipH = 0
- end if
- if getAt(pwr, 1) > 0 then
- if psyprop <> 0 then
- set the keyUpScript to "psyreg"
- set the keyDownScript to "psyregb"
- puppetSprite(31, 1)
- set the loc of sprite 31 to the loc of sprite getAt(ppl, 1) - 160
- set the member of sprite 31 to member("hit" & psyprop, 1)
- psyprop = 0
- if random(3) = 1 then
- sound playFile 2, fxpath & random(3) + 286
- else
- sound playFile 1, fxpath & "ene1prp.aif"
- end if
- go("stage4")
- end if
- if (the keyCode = 49) and (getAt(mnv, 1) > 1) then
- sound playFile 1, fxpath & "enefis.aif"
- else
- g = random(2)
- if g = 1 then
- g = 46
- else
- g = 55
- end if
- set the member of sprite getAt(ppl, 1) to member(g, 2)
- setAt(pwr, 1, getAt(pwr, 1) - 5)
- setAt(mnv, 1, 6)
- sound playFile 1, fxpath & "ene1hit.aif"
- if random(3) = 1 then
- sound playFile 2, fxpath & random(6) + 268
- else
- if random(2) = 1 then
- sound playFile 2, fxpath & random(3) + 286
- end if
- end if
- end if
- else
- sound playFile 1, fxpath & "ene2dead.aif"
- set the member of sprite getAt(ppl, 1) to member(46, 2)
- setAt(mnv, 1, 6)
- setAt(mnv, 1, 9)
- go("dead")
- end if
- else
- if abs(the locV of sprite getAt(ppl, 1) - the locV of sprite getAt(ppl, 2)) > 90 then
- setAt(foes, 1, 77)
- setAt(mnv, 2, 9)
- end if
- end if
- end if
- end if
- else
- if (getAt(foes, 2) = myfoe) and (myfoe <> 138) then
- if the locH of sprite getAt(ppl, 1) < (the locH of sprite getAt(ppl, 3) - 120) then
- set the member of sprite mycnl to member(myfoe + 1)
- setAt(foes, 2, 104)
- setAt(mnv, 3, 11)
- sprite(getAt(ppl, 3)).flipH = 0
- else
- if the locH of sprite getAt(ppl, 1) > (the locH of sprite getAt(ppl, 3) + 120) then
- set the member of sprite mycnl to member(myfoe + 1)
- setAt(foes, 2, 104)
- setAt(mnv, 3, 11)
- sprite(getAt(ppl, 3)).flipH = 1
- else
- if abs(the locV of sprite getAt(ppl, 1) - the locV of sprite getAt(ppl, 3)) < 90 then
- set the member of sprite mycnl to member(116)
- setAt(foes, 2, 116)
- setAt(mnv, 3, 6)
- if the locH of sprite getAt(ppl, 1) > the locH of sprite getAt(ppl, 3) then
- sprite(getAt(ppl, 3)).flipH = 1
- else
- sprite(getAt(ppl, 3)).flipH = 0
- end if
- if getAt(pwr, 1) > 0 then
- if psyprop <> 0 then
- set the keyUpScript to "psyreg"
- set the keyDownScript to "psyregb"
- puppetSprite(31, 1)
- set the loc of sprite 31 to the loc of sprite getAt(ppl, 1) - 160
- set the member of sprite 31 to member("hit" & psyprop, 1)
- psyprop = 0
- if random(3) = 1 then
- sound playFile 2, fxpath & random(3) + 286
- else
- sound playFile 1, fxpath & "ene1prp.aif"
- end if
- go("stage4")
- end if
- if (the keyCode = 49) and (getAt(mnv, 1) > 1) then
- sound playFile 1, fxpath & "enefis.aif"
- else
- g = random(2)
- if g = 1 then
- g = 46
- else
- g = 55
- end if
- set the member of sprite getAt(ppl, 1) to member(g, 2)
- setAt(pwr, 1, getAt(pwr, 1) - 5)
- setAt(mnv, 1, 6)
- sound playFile 1, fxpath & "ene1hit.aif"
- if random(3) = 1 then
- sound playFile 2, fxpath & random(6) + 268
- else
- if random(2) = 1 then
- sound playFile 2, fxpath & random(3) + 286
- end if
- end if
- end if
- else
- sound playFile 1, fxpath & "ene3dead.aif"
- set the member of sprite getAt(ppl, 1) to member(46, 2)
- setAt(mnv, 1, 6)
- setAt(mnv, 1, 9)
- end if
- else
- if abs(the locV of sprite getAt(ppl, 1) - the locV of sprite getAt(ppl, 3)) > 90 then
- setAt(foes, 2, 104)
- setAt(mnv, 3, 11)
- end if
- end if
- end if
- end if
- else
- if (getAt(foes, 3) = myfoe) and (myfoe <> 294) then
- if the locH of sprite getAt(ppl, 1) < (the locH of sprite getAt(ppl, 4) - 120) then
- set the member of sprite mycnl to member(myfoe + 1)
- setAt(foes, 3, 262)
- setAt(mnv, 4, 10)
- sprite(getAt(ppl, 3)).flipH = 0
- else
- if the locH of sprite getAt(ppl, 1) > (the locH of sprite getAt(ppl, 4) + 120) then
- set the member of sprite mycnl to member(myfoe + 1)
- setAt(foes, 3, 262)
- setAt(mnv, 4, 10)
- sprite(getAt(ppl, 4)).flipH = 1
- else
- if abs(the locV of sprite getAt(ppl, 1) - the locV of sprite getAt(ppl, 4)) < 90 then
- set the member of sprite mycnl to member(271)
- setAt(foes, 3, 271)
- setAt(mnv, 4, 8)
- if the locH of sprite getAt(ppl, 1) > the locH of sprite getAt(ppl, 4) then
- sprite(getAt(ppl, 4)).flipH = 1
- else
- sprite(getAt(ppl, 4)).flipH = 0
- end if
- if getAt(pwr, 1) > 0 then
- if psyprop <> 0 then
- set the keyUpScript to "psyreg"
- set the keyDownScript to "psyregb"
- puppetSprite(31, 1)
- set the loc of sprite 31 to the loc of sprite getAt(ppl, 1) - 160
- set the member of sprite 31 to member("hit" & psyprop, 1)
- psyprop = 0
- if random(3) = 1 then
- sound playFile 2, fxpath & random(3) + 286
- else
- sound playFile 1, fxpath & "ene1prp.aif"
- end if
- go("stage4")
- end if
- if (the keyCode = 49) and (getAt(mnv, 1) > 1) then
- sound playFile 1, fxpath & "enefis.aif"
- else
- g = random(2)
- if g = 1 then
- g = 46
- else
- g = 55
- end if
- set the member of sprite getAt(ppl, 1) to member(g, 2)
- setAt(pwr, 1, getAt(pwr, 1) - 5)
- setAt(mnv, 1, 6)
- sound playFile 1, fxpath & "ene1hit.aif"
- if random(3) = 1 then
- sound playFile 2, fxpath & random(6) + 268
- else
- if random(2) = 1 then
- sound playFile 2, fxpath & random(3) + 295
- end if
- end if
- end if
- else
- sound playFile 1, fxpath & "ene3dead.aif"
- set the member of sprite getAt(ppl, 1) to member(46, 2)
- setAt(mnv, 1, 6)
- setAt(mnv, 1, 9)
- end if
- else
- if abs(the locV of sprite getAt(ppl, 1) - the locV of sprite getAt(ppl, 4)) > 90 then
- setAt(foes, 3, 262)
- setAt(mnv, 4, 3)
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end
-